<%@page language="java" import="java.util.*,java.sql.*" contentType="text/html; charset=utf-8"%>
<%@page import="java.io.*,java.util.*,java.sql.*, com.hotel.dao.*" %>
<%@ page import="com.animal.dao.Connect" %>

<% request.setCharacterEncoding("utf-8");
	
	String id = String.valueOf(request.getParameter("I"));
	String pw = String.valueOf(request.getParameter("PW"));
	
	String queryStr = "update animalfile09_archvist set Password=? where ID=?";
	Connection conn = Connect.getCon();
	PreparedStatement pstmt = conn.prepareStatement(queryStr);
	pstmt.setString(1,pw);
	pstmt.setString(2,id);
	pstmt.executeUpdate();
	pstmt.close();
	conn.close(); 
%>
